package com.fx.utils;

import com.fx.demo.common.resulUtils.AjaxResult;
import com.fx.dto.Student;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Collection;

@FeignClient(name = "provider")
public interface FeignProviderClient {
    @GetMapping("/eurekaclient/student")
    public AjaxResult<Collection<Student>>findAll(@RequestParam("start") int start, @RequestParam("pageSize") int pageSize);
    @GetMapping("/eurekaclient/getport")
    public String getPort();
}
